package net.dopan.pigframe.demo.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.*;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("user_friends" )
public class UserFriends extends Model<UserFriends> {

    private static final long serialVersionUID = 1L;

    /**
     * 活动Id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private long id;

    @TableField("user_id" )
    private long userId;
    @TableField("friend_id" )
    private long friendId;
    @TableField("remark_name" )
    private String remarkName;
    private byte allow;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
